package cn.itcast.dao.company;


import cn.itcast.domain.company.Company;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface CompanyDao {


    void save(Company company);

    Company findById(String id);

    void updateById(Company company);

    void deleteById(String id);

    List<Company> findPage(@Param("start") int start, @Param("pageSize") Integer pageSize);

    Long findCount();

    List<Company> findAll();

    List<String> findModulesByCompanyId(String companyId);

    void deleteModuleByCompanyId(String companyId);

    void saveCompanyModule(@Param("companyId") String companyId, @Param("moduleId")String moduleId);
}
